package com.luweiteng.valiteddemo.constant;

/**
 * 错误码
 */
public enum ErrorCode {
    COMMON_NO_LOGIN(1001, "未登录"),
    COMMON_USER_NAME_PASSWORD(1001, "用户名或密码错误"),
    COMMON_ILLEGA_LOGIN_TYPE(1002,"非法登陆类型"),
    ACCOUNT_STATUS_ERROR(1003,"账号状态异常,请联系管理员");
    private Integer errorCode;
    private String errorMsg;

    ErrorCode(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }



}
